package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:User构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "User",value = "User")
@Table(name="user")
@Data
@Builder
public class User implements Serializable{

	@ApiModelProperty(value = "")
	@Id
    @Column(name = "id")
	private Long id;//

	@ApiModelProperty(value = "用户真实姓名")
    @Column(name = "name")
	private String name;//用户真实姓名

	@ApiModelProperty(value = "用户名")
    @Column(name = "username")
	private String username;//用户名

	@ApiModelProperty(value = "电话号码")
    @Column(name = "phone")
	private String phone;//电话号码

	@ApiModelProperty(value = "头像")
    @Column(name = "head_portrait")
	private String headPortrait;//头像

	@ApiModelProperty(value = "性别")
    @Column(name = "gender")
	private Integer gender;//性别

	@ApiModelProperty(value = "出生")
    @Column(name = "birth")
	private Date birth;//出生

	@ApiModelProperty(value = "简介")
    @Column(name = "introduction")
	private String introduction;//简介

	@ApiModelProperty(value = "宿舍号")
    @Column(name = "dormitory")
	private String dormitory;//宿舍号

	@ApiModelProperty(value = "班级")
    @Column(name = "clazz")
	private String clazz;//班级

	@ApiModelProperty(value = "学号")
    @Column(name = "sno")
	private String sno;//学号

	@ApiModelProperty(value = "修改时间")
    @Column(name = "modified")
	private Date modified;//修改时间

	@ApiModelProperty(value = "创建时间")
    @Column(name = "created")
	private Date created;//创建时间

	@ApiModelProperty(value = "二手商品交易数量(为了简单不进行分表，后期在考虑需不需要分表)")
    @Column(name = "sh_deal_count")
	private Integer shDealCount;//二手商品交易数量(为了简单不进行分表，后期在考虑需不需要分表)

	@ApiModelProperty(value = "微信的openId")
	@Column(name = "openId")
	private String openId;//用户名

}
